import http from '../common/http/http.js'
// 用户基本信息注册
export const register = (data) => {
	return http.post('/api/User/register', data)
}

// 用户登录
export const login = (data) => {
	return http.post('/api/User/login', data)
}

// 根据userid查询用户信息
export const getUserInfoApi = (userId) => {
  return http.get(`/api/User/getUserInfo/${userId}`)
}

// 更新用户信息（如果需要）
export const editUserApi = (data) => {
  return http.put('/api/User/edit', data)
}


// 用户登录
export const changePasswordApi = (data) => {
	return http.post('/api/User/changePassword', data)
}


